<?php

class m_form_actions_block_DashBoardAction extends m_backoffice_extends_Action
{
	public function execute()
	{
        $root = $this->getRequestDocument();

        if($root->getModel() == 'modules_backoffice/rootNode')
        {            
            $this->addToModel('websites', $root->getAllWebsites());
            $this->setView('rootList');
        }
        else
        {
            $this->addToModel('website', $root);
            $this->addToModel('forms', $root->getForm());
            $this->setView('websiteList');
        }
	}
}